package com.genius.reservation.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.genius.reservation.common.BaseDao.BaseDao;
import com.genius.reservation.receiveRecord.entity.ReceiveRecordInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.genius.reservation.receiver.entity.ReceiverInformation;

import java.util.List;

/**
 * <p>
 * 收货记录信息 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
public interface ReceiveRecordInformationMapper extends BaseDao<ReceiveRecordInformation> {
    default LambdaQueryWrapper<ReceiveRecordInformation> getWrapper(){
        return new LambdaQueryWrapper();
    }
    default ReceiveRecordInformation up(ReceiveRecordInformation entity){
        this.update(entity);
        return entity;
    }
    default ReceiveRecordInformation ad(ReceiveRecordInformation entity){
        this.save(entity);
        return entity;
    }

    List<ReceiveRecordInformation> getReceivingReservation();
    List<ReceiveRecordInformation> getReceivedReservation();

}
